- content_for :wide do
  .form
    = form_tag roles_admin_user_path do
      = hidden_field_tag 'user[roles][]', '[]'
      %h2= @user.full_name

      %div= image_tag @user.avatar.url(:small)

      - Role.all.each do |role|
        %div
          = check_box_tag 'user[roles][]', role.id, @user.roles.include?(role), :id => dom_id(role)
          = label_tag dom_id(role), role.name.humanize
          .description
            = role.description

      .actions
        = submit_tag "Обновить", :class => "btn primary small"
        = link_to t('back'), :back, :class => "btn small"